home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•The School House•
/
HeloMath ••••
/
HeloMath ееее.rsrc
/
CODE_1_Main.txt
< prev
next >
Wrap
Text File
|
1988-10-20
|
42KB
|
771 lines
# near model CODE resource
# jump table entries: 0-10 (11 of them)
export_0:
00000000 4EBA 069C jsr [PC + 0x69C /* 0000069E */]
00000004 4E56 0000 link A6, 0
00000008 2C5F movea.l A6, [A7]+
0000000A 4EBA 0694 jsr [PC + 0x694 /* 000006A0 */]
0000000E 486D C44E pea.l [A5 - 0x3BB2]
00000012 A86E syscall InitGraf
00000014 A8FE syscall InitFonts
00000016 2F3C 0000 FFFF move.l -[A7], 0xFFFF
0000001C 201F move.l D0, [A7]+
0000001E A032 syscall FlushEvents
00000020 4EAD 011A jsr [A5 + 0x11A /* export_31 */]
label00000024:
00000024 486D 008A pea.l [A5 + 0x8A /* export_13 */]
00000028 A9F1 syscall UnloadSeg
0000002A 486D 0092 pea.l [A5 + 0x92 /* export_14 */]
0000002E A9F1 syscall UnloadSeg
00000030 486D 00AA pea.l [A5 + 0xAA /* export_17 */]
00000034 A9F1 syscall UnloadSeg
00000036 486D 00B2 pea.l [A5 + 0xB2 /* export_18 */]
0000003A A9F1 syscall UnloadSeg
0000003C 486D 00BA pea.l [A5 + 0xBA /* export_19 */]
00000040 A9F1 syscall UnloadSeg
00000042 486D 00C2 pea.l [A5 + 0xC2 /* export_20 */]
00000046 A9F1 syscall UnloadSeg
00000048 486D 00CA pea.l [A5 + 0xCA /* export_21 */]
0000004C A9F1 syscall UnloadSeg
0000004E 486D 00FA pea.l [A5 + 0xFA /* export_27 */]
00000052 A9F1 syscall UnloadSeg
00000054 486D 00FA pea.l [A5 + 0xFA /* export_27 */]
00000058 A9F1 syscall UnloadSeg
0000005A 486D 010A pea.l [A5 + 0x10A /* export_29 */]
0000005E A9F1 syscall UnloadSeg
00000060 486D 011A pea.l [A5 + 0x11A /* export_31 */]
00000064 A9F1 syscall UnloadSeg
00000066 A9B4 syscall SystemTask
00000068 102D C51D move.b D0, [A5 - 0x3AE3]
0000006C 6704 beq +0x6 /* 00000072 */
0000006E 4EAD 0102 jsr [A5 + 0x102 /* export_28 */]
label00000072:
00000072 42A7 clr.l -[A7]
00000074 A975 syscall TickCount
00000076 201F move.l D0, [A7]+
00000078 90AD C83C sub.l D0, [A5 - 0x37C4]
0000007C 0C80 0000 01E0 cmpi.l D0, 0x1E0
00000082 5CC0 sge D0
00000084 C02D C51D and.b D0, [A5 - 0x3AE3]
00000088 6704 beq +0x6 /* 0000008E */
0000008A 4EAD 010A jsr [A5 + 0x10A /* export_29 */]
label0000008E:
0000008E 7001 moveq.l D0, 0x01
00000090 B06D EC24 cmp.w D0, [A5 - 0x13DC]
00000094 57C0 seq D0
00000096 C02D C62D and.b D0, [A5 - 0x39D3]
0000009A 6704 beq +0x6 /* 000000A0 */
0000009C 4EAD 0112 jsr [A5 + 0x112 /* export_30 */]
label000000A0:
000000A0 2F3C FFFF 0000 move.l -[A7], 0xFFFF0000
000000A6 486D FFBC pea.l [A5 - 0x44]
000000AA A970 syscall GetNextEvent
000000AC 101F move.b D0, [A7]+
000000AE 6700 00A8 beq +0xAA /* 00000158 */
000000B2 302D FFBC move.w D0, [A5 - 0x44]
000000B6 5340 subq.w D0, 1
000000B8 670C beq +0xE /* 000000C6 */
000000BA 5540 subq.w D0, 2
000000BC 6766 beq +0x68 /* 00000124 */
000000BE 5540 subq.w D0, 2
000000C0 6762 beq +0x64 /* 00000124 */
000000C2 6000 0094 bra +0x96 /* 00000158 */
label000000C6:
000000C6 4267 clr.w -[A7]
000000C8 2F2D FFC6 move.l -[A7], [A5 - 0x3A]
000000CC 486D FF14 pea.l [A5 - 0xEC]
000000D0 A92C syscall FindWindow
000000D2 3B5F FFB8 move.w [A5 - 0x48], [A7]+
000000D6 302D FFB8 move.w D0, [A5 - 0x48]
000000DA 5340 subq.w D0, 1
000000DC 6712 beq +0x14 /* 000000F0 */
000000DE 5340 subq.w D0, 1
000000E0 671C beq +0x1E /* 000000FE */
000000E2 5340 subq.w D0, 1
000000E4 671C beq +0x1E /* 00000102 */
000000E6 5340 subq.w D0, 1
000000E8 6716 beq +0x18 /* 00000100 */
000000EA 5340 subq.w D0, 1
000000EC 6714 beq +0x16 /* 00000102 */
000000EE 6068 bra +0x6A /* 00000158 */
label000000F0:
000000F0 42A7 clr.l -[A7]
000000F2 2F2D FFC6 move.l -[A7], [A5 - 0x3A]
000000F6 A93D syscall MenuSelect
000000F8 4EAD 00AA jsr [A5 + 0xAA /* export_17 */]
000000FC 605A bra +0x5C /* 00000158 */
label000000FE:
000000FE 6058 bra +0x5A /* 00000158 */
label00000100:
00000100 6056 bra +0x58 /* 00000158 */
label00000102:
00000102 7003 moveq.l D0, 0x03
00000104 B06D EC24 cmp.w D0, [A5 - 0x13DC]
00000108 57C0 seq D0
0000010A 722B moveq.l D1, 0x2B
0000010C B26D EC30 cmp.w D1, [A5 - 0x13D0]
00000110 5DC1 slt D1
00000112 C001 and.b D0, D1
00000114 4A2D C62D tst.b [A5 - 0x39D3]
00000118 57C1 seq D1
0000011A C001 and.b D0, D1
0000011C 6704 beq +0x6 /* 00000122 */
0000011E 4EAD 00FA jsr [A5 + 0xFA /* export_27 */]
label00000122:
00000122 6034 bra +0x36 /* 00000158 */
label00000124:
00000124 2F2D FFBE move.l -[A7], [A5 - 0x42]
00000128 2F3C 0000 0100 move.l -[A7], 0x100
0000012E 4EBA 05E0 jsr [PC + 0x5E0 /* 00000710 */]
00000132 201F move.l D0, [A7]+
00000134 3B40 EC20 move.w [A5 - 0x13E0], D0
00000138 6B18 bmi +0x1A /* 00000152 */
0000013A B07C 00FF cmp.w D0, 0xFF
0000013E 6E12 bgt +0x14 /* 00000152 */
00000140 41ED EC20 lea.l A0, [A5 - 0x13E0]
00000144 3200 move.w D1, D0
00000146 E649 lsr D1.w, 3
00000148 4441 neg.w D1
0000014A 0130 10FF btst [A0 + D1.w - 0x1], D0
0000014E 0A3C 0004 xori.b ccr, 4
label00000152:
00000152 6604 bne +0x6 /* 00000158 */
00000154 4EAD 00CA jsr [A5 + 0xCA /* export_21 */]
label00000158:
00000158 102D FF0F move.b D0, [A5 - 0xF1]
0000015C 6700 FEC6 beq -0x138 /* 00000024 */
00000160 4EAD 0092 jsr [A5 + 0x92 /* export_14 */]
00000164 4EBA 055E jsr [PC + 0x55E /* 000006C4 */]
00000168 4EBA 0560 jsr [PC + 0x560 /* 000006CA */]
0000016C 4E75 rts
0000016E 4E5E unlink A6
00000170 4E75 rts
00000172 C845 and.w D4, D5
00000174 4C4F 4D41 movem.l D0,D6,A0,A2,A3,A6, A7
00000178 5448 addq.w A0, 2
0000017A 0000 225F ori.b D0, 0x5F /* '_' */
0000017E 201F move.l D0, [A7]+
00000180 A04C syscall CompactMem
00000182 2E80 move.l [A7], D0
00000184 4E71 nop
00000186 7000 moveq.l D0, 0x00
label00000188:
00000188 2F09 move.l -[A7], A1
label0000018A:
0000018A 31C0 0220 move.w [0x00000220 /* MemErr */], D0
0000018E 4E75 rts
00000190 7000 moveq.l D0, 0x00
00000192 60F6 bra -0x8 /* 0000018A */
export_1:
00000194 225F movea.l A1, [A7]+
00000196 205F movea.l A0, [A7]+
00000198 A02D syscall SetApplLimit
0000019A 4EFA FFEC jmp [PC - 0x14 /* 00000188 */]
export_2:
0000019E 4A78 028E tst.w [0x0000028E /* ROM85 */]
000001A2 6A2A bpl +0x2C /* 000001CE */
000001A4 2078 0130 movea.l A0, [0x00000130 /* ApplLimit */]
000001A8 43F8 0114 lea.l A1, [0x00000114 /* HeapEnd */]
000001AC 2008 move.l D0, A0
000001AE 9091 sub.l D0, [A1]
000001B0 740C moveq.l D2, 0x0C
000001B2 B082 cmp.l D0, D2
000001B4 6516 bcs +0x18 /* 000001CC */
000001B6 2251 movea.l A1, [A1]
000001B8 21C8 0114 move.l [0x00000114 /* HeapEnd */], A0
000001BC 2280 move.l [A1], D0
000001BE 4211 clr.b [A1]
000001C0 2278 02AA movea.l A1, [0x000002AA /* ApplZone */]
000001C4 2288 move.l [A1], A0
000001C6 2082 move.l [A0], D2
000001C8 D1A9 000C add.l [A1 + 0xC], D0
label000001CC:
000001CC 4E75 rts
label000001CE:
000001CE A063 syscall MaxApplZone
000001D0 4E75 rts
export_3:
000001D2 225F movea.l A1, [A7]+
000001D4 201F move.l D0, [A7]+
000001D6 A122 syscall NewHandle, flags=1
000001D8 2E88 move.l [A7], A0
000001DA 4EFA FFAC jmp [PC - 0x54 /* 00000188 */]
export_4:
000001DE 225F movea.l A1, [A7]+
000001E0 205F movea.l A0, [A7]+
000001E2 A029 syscall HLock
000001E4 4EFA FFA2 jmp [PC - 0x5E /* 00000188 */]
export_5:
000001E8 225F movea.l A1, [A7]+
000001EA 205F movea.l A0, [A7]+
000001EC A02A syscall HUnlock
000001EE 4EFA FF98 jmp [PC - 0x68 /* 00000188 */]
export_6:
000001F2 A036 syscall MoreMasters
000001F4 4EFA FF94 jmp [PC - 0x6C /* 0000018A */]
export_7:
000001F8 201F move.l D0, [A7]+
000001FA 225F movea.l A1, [A7]+
000001FC 205F movea.l A0, [A7]+
000001FE 2F00 move.l -[A7], D0
00000200 A03B syscall Delay
00000202 2280 move.l [A1], D0
00000204 4E75 rts
export_8:
00000206 2078 0AE8 movea.l A0, [0x00000AE8 /* SoundGlue */]
0000020A B0F8 0A06 cmpa.w A0, [0x00000A06 /* MinusOne */]
0000020E 661E bne +0x20 /* 0000022E */
00000210 703A moveq.l D0, 0x3A
00000212 A322 syscall NewHandleClear, flags=3
00000214 6600 00D2 bne +0xD4 /* 000002E8 */
00000218 A029 syscall HLock
0000021A 21C8 0AE8 move.l [0x00000AE8 /* SoundGlue */], A0
0000021E 2250 movea.l A1, [A0]
00000220 2378 033C 0034 move.l [A1 + 0x34], [0x0000033C /* IAZNotify */]
00000226 43FA 0102 lea.l A1, [PC + 0x102 /* 0000032A, value 0x61E42038 */]
0000022A 21C9 033C move.l [0x0000033C /* IAZNotify */], A1
label0000022E:
0000022E 2250 movea.l A1, [A0]
00000230 4A69 0010 tst.w [A1 + 0x10]
00000234 6F7E ble +0x80 /* 000002B4 */
00000236 222F 0004 move.l D1, [A7 + 0x4]
0000023A 6B72 bmi +0x74 /* 000002AE */
0000023C 50E9 0039 st [A1 + 0x39]
00000240 3229 0032 move.w D1, [A1 + 0x32]
00000244 2408 move.l D2, A0
00000246 48E7 6000 movem.l -[A7], D1,D2
0000024A A9E1 syscall HandToHand
0000024C 4CDF 0006 movem.l D1,D2, [A7]+
00000250 4A40 tst.w D0
00000252 6600 0094 bne +0x96 /* 000002E8 */
00000256 7000 moveq.l D0, 0x00
00000258 0641 000C addi.w D1, 0xC
0000025C 3001 move.w D0, D1
0000025E A024 syscall SetHandleSize
00000260 6600 0086 bne +0x88 /* 000002E8 */
00000264 A029 syscall HLock
00000266 21C8 0AE8 move.l [0x00000AE8 /* SoundGlue */], A0
0000026A 2250 movea.l A1, [A0]
0000026C 2078 027A movea.l A0, [0x0000027A /* SoundDCE */]
00000270 2149 0008 move.l [A0 + 0x8], A1
00000274 2149 000C move.l [A0 + 0xC], A1
00000278 2042 movea.l A0, D2
0000027A 2050 movea.l A0, [A0]
0000027C 1028 0038 move.b D0, [A0 + 0x38]
00000280 8129 0038 or.b [A1 + 0x38], D0
00000284 2042 movea.l A0, D2
00000286 A023 syscall DisposHandle/DisposeHandle
00000288 3341 0032 move.w [A1 + 0x32], D1
0000028C 08A9 0000 0038 bclr.b [A1 + 0x38], 0x0
00000292 6708 beq +0xA /* 0000029C */
00000294 4269 0010 clr.w [A1 + 0x10]
00000298 4EBA 009C jsr [PC + 0x9C /* 00000336 */]
label0000029C:
0000029C 51E9 0039 sf [A1 + 0x39]
000002A0 D2C1 add.w A1, D1
000002A2 700C moveq.l D0, 0x0C
000002A4 92C0 sub.w A1, D0
000002A6 41EF 0004 lea.l A0, [A7 + 0x4]
000002AA A02E syscall BlockMove/BlockMoveData
000002AC 603E bra +0x40 /* 000002EC */
label000002AE:
000002AE 3028 0010 move.w D0, [A0 + 0x10]
000002B2 6EFA bgt -0x4 /* 000002AE */
label000002B4:
000002B4 2049 movea.l A0, A1
000002B6 317C 003A 0032 move.w [A0 + 0x32], 0x3A /* ':' */
000002BC 216F 0008 0024 move.l [A0 + 0x24], [A7 + 0x8]
000002C2 216F 000C 0020 move.l [A0 + 0x20], [A7 + 0xC]
000002C8 317C FFFC 0018 move.w [A0 + 0x18], 0xFFFC
000002CE 222F 0004 move.l D1, [A7 + 0x4]
000002D2 6A04 bpl +0x6 /* 000002D8 */
000002D4 A003 syscall Write
000002D6 600E bra +0x10 /* 000002E6 */
label000002D8:
000002D8 2141 001C move.l [A0 + 0x1C], D1
000002DC 43FA 0058 lea.l A1, [PC + 0x58 /* 00000336, value 0x48E7E0C0 */]
000002E0 2149 000C move.l [A0 + 0xC], A1
000002E4 A403 syscall Write, flags=4
label000002E6:
000002E6 4A40 tst.w D0
label000002E8:
000002E8 6702 beq +0x4 /* 000002EC */
000002EA 6108 bsr +0xA /* 000002F4 */
label000002EC:
000002EC 225F movea.l A1, [A7]+
000002EE DEFC 000C add.w A7, 0xC
000002F2 4ED1 jmp [A1]
fn000002F4:
000002F4 2078 0AE8 movea.l A0, [0x00000AE8 /* SoundGlue */]
000002F8 B0F8 0A06 cmpa.w A0, [0x00000A06 /* MinusOne */]
000002FC 6710 beq +0x12 /* 0000030E */
000002FE 2250 movea.l A1, [A0]
00000300 21E9 0034 033C move.l [0x0000033C /* IAZNotify */], [A1 + 0x34]
00000306 A023 syscall DisposHandle/DisposeHandle
00000308 21F8 0A06 0AE8 move.l [0x00000AE8 /* SoundGlue */], [0x00000A06 /* MinusOne */]
label0000030E:
0000030E 4E75 rts
fn00000310:
00000310 4E56 FFE0 link A6, -0x0020
00000314 41EE FFE0 lea.l A0, [A6 - 0x20]
00000318 317C FFFC 0018 move.w [A0 + 0x18], 0xFFFC
0000031E A206 syscall KillIO, flags=2
00000320 4278 0280 clr.w [0x00000280 /* CurPitch */]
00000324 61CE bsr -0x30 /* 000002F4 */
00000326 4E5E unlink A6
label00000328:
00000328 4E75 rts
0000032A 61E4 bsr -0x1A /* 00000310 */
0000032C 2038 033C move.l D0, [0x0000033C /* IAZNotify */]
00000330 6FF6 ble -0x8 /* 00000328 */
00000332 2040 movea.l A0, D0
00000334 4ED0 jmp [A0]
fn00000336:
00000336 48E7 E0C0 movem.l -[A7], D0,D1,D2,A0,A1
0000033A 2078 0AE8 movea.l A0, [0x00000AE8 /* SoundGlue */]
0000033E 2050 movea.l A0, [A0]
00000340 4A28 0039 tst.b [A0 + 0x39]
00000344 6706 beq +0x8 /* 0000034C */
00000346 50E8 0038 st [A0 + 0x38]
0000034A 6062 bra +0x64 /* 000003AE */
label0000034C:
0000034C 3028 0032 move.w D0, [A0 + 0x32]
00000350 2228 001C move.l D1, [A0 + 0x1C]
00000354 670C beq +0xE /* 00000362 */
00000356 2241 movea.l A1, D1
00000358 48E7 8080 movem.l -[A7], D0,A0
0000035C 4E91 jsr [A1]
0000035E 4CDF 0101 movem.l D0,A0, [A7]+
label00000362:
00000362 0C40 003A cmpi.w D0, 0x3A /* ':' */
00000366 6746 beq +0x48 /* 000003AE */
00000368 2248 movea.l A1, A0
0000036A 41E8 003A lea.l A0, [A0 + 0x3A]
0000036E 2358 001C move.l [A1 + 0x1C], [A0]+
00000372 2358 0024 move.l [A1 + 0x24], [A0]+
00000376 2358 0020 move.l [A1 + 0x20], [A0]+
0000037A 337C FFFC 0018 move.w [A1 + 0x18], 0xFFFC
00000380 7246 moveq.l D1, 0x46
00000382 9041 sub.w D0, D1
00000384 6712 beq +0x14 /* 00000398 */
00000386 3200 move.w D1, D0
00000388 48C0 ext.l D0
0000038A 2248 movea.l A1, A0
0000038C 92FC 000C sub.w A1, 0xC
00000390 A02E syscall BlockMove/BlockMoveData
00000392 0641 003A addi.w D1, 0x3A /* ':' */
00000396 6002 bra +0x4 /* 0000039A */
label00000398:
00000398 723A moveq.l D1, 0x3A
label0000039A:
0000039A 2078 0AE8 movea.l A0, [0x00000AE8 /* SoundGlue */]
0000039E 2050 movea.l A0, [A0]
000003A0 3141 0032 move.w [A0 + 0x32], D1
000003A4 43FA FF90 lea.l A1, [PC - 0x70 /* 00000336, value 0x48E7E0C0 */]
000003A8 2149 000C move.l [A0 + 0xC], A1
000003AC A403 syscall Write, flags=4
label000003AE:
000003AE 4CDF 0307 movem.l D0,D1,D2,A0,A1, [A7]+
000003B2 4E75 rts
export_9:
000003B4 225F movea.l A1, [A7]+
000003B6 50D7 st [A7]
000003B8 2078 0AE8 movea.l A0, [0x00000AE8 /* SoundGlue */]
000003BC B0F8 0A06 cmpa.w A0, [0x00000A06 /* MinusOne */]
000003C0 6708 beq +0xA /* 000003CA */
000003C2 2050 movea.l A0, [A0]
000003C4 4A68 0010 tst.w [A0 + 0x10]
000003C8 5FD7 sle [A7]
label000003CA:
000003CA 4417 neg.b [A7]
000003CC 4ED1 jmp [A1]
export_10:
000003CE 206F 0004 movea.l A0, [A7 + 0x4]
000003D2 202F 0008 move.l D0, [A7 + 0x8]
000003D6 4267 clr.w -[A7]
000003D8 A9EE syscall Pack7/DecStr68K
000003DA 205F movea.l A0, [A7]+
000003DC 504F addq.w A7, 8
000003DE 4ED0 jmp [A0]
fn000003E0:
000003E0 4E56 0000 link A6, 0
000003E4 48E7 3030 movem.l -[A7], D2,D3,A2,A3
000003E8 262E 0008 move.l D3, [A6 + 0x8]
000003EC 266E 000C movea.l A3, [A6 + 0xC]
000003F0 242E 0010 move.l D2, [A6 + 0x10]
000003F4 4EAD 0122 jsr [A5 + 0x122 /* export_32 */]
000003F8 206D C4C0 movea.l A0, [A5 - 0x3B40]
000003FC 2083 move.l [A0], D3
000003FE 7001 moveq.l D0, 0x01
00000400 4AB8 0316 tst.l [0x00000316 /* HpChk/MacPgm */]
00000404 6700 0036 beq +0x38 /* 0000043C */
00000408 0838 0000 0319 btst.b [0x00000319], 0x0
0000040E 6600 002C bne +0x2E /* 0000043C */
00000412 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
00000416 0C90 4D50 474D cmpi.l [A0], 0x4D50474D /* 'MPGM' */
0000041C 6600 001E bne +0x20 /* 0000043C */
00000420 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
00000424 4AA8 0004 tst.l [A0 + 0x4]
00000428 6700 0012 beq +0x14 /* 0000043C */
0000042C 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
00000430 2268 0004 movea.l A1, [A0 + 0x4]
00000434 4A51 tst.w [A1]
00000436 6700 0004 beq +0x6 /* 0000043C */
0000043A 7000 moveq.l D0, 0x00
label0000043C:
0000043C 2B40 C4DE move.l [A5 - 0x3B22], D0
00000440 4AAD C4DE tst.l [A5 - 0x3B22]
00000444 6700 0058 beq +0x5A /* 0000049E */
00000448 41F8 0910 lea.l A0, [0x00000910 /* CurApName */]
0000044C 43ED C486 lea.l A1, [A5 - 0x3B7A]
00000450 7010 moveq.l D0, 0x10
label00000452:
00000452 32D8 move.w [A1]+, [A0]+
00000454 51C8 FFFC dbf D0, -0x6 /* 00000452 */
00000458 206D C4B0 movea.l A0, [A5 - 0x3B50]
0000045C 43ED C486 lea.l A1, [A5 - 0x3B7A]
00000460 2089 move.l [A0], A1
00000462 4AAE 0018 tst.l [A6 + 0x18]
00000466 660C bne +0xE /* 00000474 */
00000468 206D C4B0 movea.l A0, [A5 - 0x3B50]
0000046C 2F10 move.l -[A7], [A0]
0000046E 4EBA 0210 jsr [PC + 0x210 /* 00000680 */]
00000472 588F addq.l A7, 4
label00000474:
00000474 200B move.l D0, A3
00000476 6704 beq +0x6 /* 0000047C */
00000478 7001 moveq.l D0, 0x01
0000047A 2680 move.l [A3], D0
label0000047C:
0000047C 4A82 tst.l D2
0000047E 6706 beq +0x8 /* 00000486 */
00000480 2042 movea.l A0, D2
00000482 20AD C4B0 move.l [A0], [A5 - 0x3B50]
label00000486:
00000486 4AAE 0014 tst.l [A6 + 0x14]
0000048A 6708 beq +0xA /* 00000494 */
0000048C 206E 0014 movea.l A0, [A6 + 0x14]
00000490 20AD C4B4 move.l [A0], [A5 - 0x3B4C]
label00000494:
00000494 7001 moveq.l D0, 0x01
00000496 2B40 C4DE move.l [A5 - 0x3B22], D0
0000049A 6000 0114 bra +0x116 /* 000005B0 */
label0000049E:
0000049E 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000004A2 2268 0004 movea.l A1, [A0 + 0x4]
000004A6 3011 move.w D0, [A1]
000004A8 B06D C4AA cmp.w D0, [A5 - 0x3B56]
000004AC 670C beq +0xE /* 000004BA */
000004AE 2F3C 8000 0000 move.l -[A7], 0x80000000
000004B4 4EBA 012C jsr [PC + 0x12C /* 000005E2 */]
000004B8 588F addq.l A7, 4
label000004BA:
000004BA 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000004BE 2268 0004 movea.l A1, [A0 + 0x4]
000004C2 41ED C4AA lea.l A0, [A5 - 0x3B56]
000004C6 2348 0024 move.l [A1 + 0x24], A0
000004CA 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000004CE 2B68 0004 C4CE move.l [A5 - 0x3B32], [A0 + 0x4]
000004D4 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000004D8 2268 0004 movea.l A1, [A0 + 0x4]
000004DC 2B69 0002 C4AC move.l [A5 - 0x3B54], [A1 + 0x2]
000004E2 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000004E6 2268 0004 movea.l A1, [A0 + 0x4]
000004EA 2B69 0006 C4B0 move.l [A5 - 0x3B50], [A1 + 0x6]
000004F0 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
000004F4 2268 0004 movea.l A1, [A0 + 0x4]
000004F8 2B69 000A C4B4 move.l [A5 - 0x3B4C], [A1 + 0xA]
000004FE 4AAE 0018 tst.l [A6 + 0x18]
00000502 672C beq +0x2E /* 00000530 */
00000504 246D C4B0 movea.l A2, [A5 - 0x3B50]
00000508 600A bra +0xC /* 00000514 */
label0000050A:
0000050A 2F12 move.l -[A7], [A2]
0000050C 4EBA 0140 jsr [PC + 0x140 /* 0000064E */]
00000510 588F addq.l A7, 4
00000512 588A addq.l A2, 4
label00000514:
00000514 4A92 tst.l [A2]
00000516 6600 FFF2 bne -0xC /* 0000050A */
0000051A 246D C4B4 movea.l A2, [A5 - 0x3B4C]
0000051E 600A bra +0xC /* 0000052A */
label00000520:
00000520 2F12 move.l -[A7], [A2]
00000522 4EBA 012A jsr [PC + 0x12A /* 0000064E */]
00000526 588F addq.l A7, 4
00000528 588A addq.l A2, 4
label0000052A:
0000052A 4A92 tst.l [A2]
0000052C 6600 FFF2 bne -0xC /* 00000520 */
label00000530:
00000530 200B move.l D0, A3
00000532 6704 beq +0x6 /* 00000538 */
00000534 26AD C4AC move.l [A3], [A5 - 0x3B54]
label00000538:
00000538 4A82 tst.l D2
0000053A 6706 beq +0x8 /* 00000542 */
0000053C 2042 movea.l A0, D2
0000053E 20AD C4B0 move.l [A0], [A5 - 0x3B50]
label00000542:
00000542 4AAE 0014 tst.l [A6 + 0x14]
00000546 6708 beq +0xA /* 00000550 */
00000548 206E 0014 movea.l A0, [A6 + 0x14]
0000054C 20AD C4B4 move.l [A0], [A5 - 0x3B4C]
label00000550:
00000550 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
00000554 2268 0004 movea.l A1, [A0 + 0x4]
00000558 4AA9 0020 tst.l [A1 + 0x20]
0000055C 674C beq +0x4E /* 000005AA */
0000055E 4878 0078 push.l 0x78 /* 'x' */
00000562 4EBA 00E0 jsr [PC + 0xE0 /* 00000644 */]
00000566 2B40 C4CA move.l [A5 - 0x3B36], D0
0000056A 2078 0316 movea.l A0, [0x00000316 /* HpChk/MacPgm */]
0000056E 2268 0004 movea.l A1, [A0 + 0x4]
00000572 2429 0020 move.l D2, [A1 + 0x20]
00000576 7200 moveq.l D1, 0x00
00000578 588F addq.l A7, 4
label0000057A:
0000057A 2001 move.l D0, D1
0000057C E780 asl D0, 3
0000057E 2600 move.l D3, D0
00000580 D080 add.l D0, D0
00000582 D083 add.l D0, D3
00000584 2240 movea.l A1, D0
00000586 D3ED C4CA add.l A1, [A5 - 0x3B36]
0000058A 2601 move.l D3, D1
0000058C E783 asl D3, 3
0000058E 2003 move.l D0, D3
00000590 D683 add.l D3, D3
00000592 D680 add.l D3, D0
00000594 2043 movea.l A0, D3
00000596 D1C2 add.l A0, D2
00000598 7005 moveq.l D0, 0x05
label0000059A:
0000059A 22D8 move.l [A1]+, [A0]+
0000059C 51C8 FFFC dbf D0, -0x6 /* 0000059A */
000005A0 5281 addq.l D1, 1
000005A2 7005 moveq.l D0, 0x05
000005A4 B081 cmp.l D0, D1
000005A6 6E00 FFD2 bgt -0x2C /* 0000057A */
label000005AA:
000005AA 7000 moveq.l D0, 0x00
000005AC 2B40 C4DE move.l [A5 - 0x3B22], D0
label000005B0:
000005B0 4CEE 0C0C FFF0 movem.l D2,D3,A2,A3, [A6 - 0x10]
000005B6 4E5E unlink A6
000005B8 4E75 rts
000005BA DF52 add.w [A2], D7
000005BC 5449 addq.w A1, 2
000005BE 4E49 trap 9
000005C0 5420 addq.b -[A0], 2
fn000005C2:
000005C2 4E56 0000 link A6, 0
000005C6 202E 0008 move.l D0, [A6 + 0x8]
000005CA 0280 00FF FFFF andi.l D0, 0xFFFFFF
000005D0 2F00 move.l -[A7], D0
000005D2 4EBA 000E jsr [PC + 0xE /* 000005E2 */]
000005D6 4E5E unlink A6
000005D8 4E75 rts
000005DA C558 and.w [A0]+, D2
000005DC 4954 chk.w D4, [A4]
000005DE 2020 move.l D0, -[A0]
000005E0 2020 move.l D0, -[A0]
fn000005E2:
000005E2 4E56 0000 link A6, 0
000005E6 48E7 2020 movem.l -[A7], D2,A2
000005EA 242E 0008 move.l D2, [A6 + 0x8]
000005EE 206D C4C0 movea.l A0, [A5 - 0x3B40]
000005F2 7024 moveq.l D0, 0x24
000005F4 D1C0 add.l A0, D0
000005F6 2448 movea.l A2, A0
000005F8 600E bra +0x10 /* 00000608 */
label000005FA:
000005FA 4A92 tst.l [A2]
000005FC 6708 beq +0xA /* 00000606 */
000005FE 2F02 move.l -[A7], D2
00000600 2052 movea.l A0, [A2]
00000602 4E90 jsr [A0]
00000604 588F addq.l A7, 4
label00000606:
00000606 598A subq.l A2, 4
label00000608:
00000608 206D C4C0 movea.l A0, [A5 - 0x3B40]
0000060C B5C8 cmpa.l A2, A0
0000060E 6200 FFEA bhi -0x14 /* 000005FA */
00000612 4AAD C4CE tst.l [A5 - 0x3B32]
00000616 6708 beq +0xA /* 00000620 */
00000618 206D C4CE movea.l A0, [A5 - 0x3B32]
0000061C 2142 000E move.l [A0 + 0xE], D2
label00000620:
00000620 206D C4C0 movea.l A0, [A5 - 0x3B40]
00000624 2050 movea.l A0, [A0]
00000626 4E90 jsr [A0]
00000628 4CEE 0404 FFF8 movem.l D2,A2, [A6 - 0x8]
0000062E 4E5E unlink A6
00000630 4E75 rts
00000632 DF52 add.w [A2], D7
00000634 5445 addq.w D5, 2
00000636 5849 addq.w A1, 4
00000638 5420 addq.b -[A0], 2
0000063A 7000 moveq.l D0, 0x00
label0000063C:
0000063C 31C0 0220 move.w [0x00000220 /* MemErr */], D0
00000640 2008 move.l D0, A0
00000642 4E75 rts
fn00000644:
00000644 202F 0004 move.l D0, [A7 + 0x4]
00000648 A11E syscall NewPtr, flags=1
0000064A 4EFA FFF0 jmp [PC - 0x10 /* 0000063C */]
fn0000064E:
0000064E 202F 0004 move.l D0, [A7 + 0x4]
00000652 6726 beq +0x28 /* 0000067A */
00000654 2040 movea.l A0, D0
00000656 2248 movea.l A1, A0
00000658 1019 move.b D0, [A1]+
0000065A 671E beq +0x20 /* 0000067A */
label0000065C:
0000065C 1211 move.b D1, [A1]
0000065E 12C0 move.b [A1]+, D0
00000660 1001 move.b D0, D1
00000662 66F8 bne -0x6 /* 0000065C */
00000664 93C8 sub.l A1, A0
00000666 2009 move.l D0, A1
00000668 5340 subq.w D0, 1
0000066A 0C80 0000 00FF cmpi.l D0, 0xFF
00000670 6F06 ble +0x8 /* 00000678 */
00000672 203C 0000 00FF move.l D0, 0xFF
label00000678:
00000678 1080 move.b [A0], D0
label0000067A:
0000067A 202F 0004 move.l D0, [A7 + 0x4]
0000067E 4E75 rts
fn00000680:
00000680 202F 0004 move.l D0, [A7 + 0x4]
00000684 6712 beq +0x14 /* 00000698 */
00000686 2040 movea.l A0, D0
00000688 7000 moveq.l D0, 0x00
0000068A 1010 move.b D0, [A0]
0000068C 6004 bra +0x6 /* 00000692 */
label0000068E:
0000068E 10E8 0001 move.b [A0]+, [A0 + 0x1]
label00000692:
00000692 51C8 FFFA dbf D0, -0x8 /* 0000068E */
00000696 4210 clr.b [A0]
label00000698:
00000698 202F 0004 move.l D0, [A7 + 0x4]
0000069C 4E75 rts
fn0000069E:
0000069E 4E75 rts
fn000006A0:
000006A0 226F 0004 movea.l A1, [A7 + 0x4]
000006A4 4878 0001 push.l 0x1
000006A8 486D C4EA pea.l [A5 - 0x3B16]
000006AC 486D C4E6 pea.l [A5 - 0x3B1A]
000006B0 486D C4E2 pea.l [A5 - 0x3B1E]
000006B4 2F09 move.l -[A7], A1
000006B6 4EBA FD28 jsr [PC - 0x2D8 /* 000003E0 */]
000006BA 4FEF 0014 lea.l A7, [A7 + 0x14]
000006BE 4EBA 0010 jsr [PC + 0x10 /* 000006D0 */]
000006C2 4E75 rts
fn000006C4:
000006C4 42A7 clr.l -[A7]
000006C6 4EBA FEFA jsr [PC - 0x106 /* 000005C2 */]
fn000006CA:
000006CA 42A7 clr.l -[A7]
000006CC 4EBA FEF4 jsr [PC - 0x10C /* 000005C2 */]
fn000006D0:
000006D0 4E56 0000 link A6, 0
000006D4 2B7C 0000 1388 C514 move.l [A5 - 0x3AEC], 0x1388
000006DC 422D C50F clr.b [A5 - 0x3AF1]
000006E0 422D C50E clr.b [A5 - 0x3AF2]
000006E4 7000 moveq.l D0, 0x00
000006E6 2B40 C508 move.l [A5 - 0x3AF8], D0
000006EA 7000 moveq.l D0, 0x00
000006EC 2B40 C504 move.l [A5 - 0x3AFC], D0
000006F0 7000 moveq.l D0, 0x00
000006F2 2B40 C4F8 move.l [A5 - 0x3B08], D0
000006F6 7000 moveq.l D0, 0x00
000006F8 2B40 C4F4 move.l [A5 - 0x3B0C], D0
000006FC 1B7C 0001 C4F3 move.b [A5 - 0x3B0D], 0x1
00000702 4E5E unlink A6
00000704 4E75 rts
00000706 A549 syscall HPurge, flags=5
00000708 4E49 trap 9
0000070A 5448 addq.w A0, 2
0000070C 4541 chk.w D2, D1
0000070E 0000 4E56 ori.b D0, 0x56 /* 'V' */
// begin alternate branch 00000710-00000716
fn00000710:
00000710 4E56 0000 link A6, 0
00000714 2F00 move.l -[A7], D0
// end alternate branch 00000710-00000716
fn00000710: // (misaligned)
00000712 0000 2F00 ori.b D0, 0x0
00000716 2F01 move.l -[A7], D1
00000718 202F 0014 move.l D0, [A7 + 0x14]
0000071C 222F 0010 move.l D1, [A7 + 0x10]
00000720 4EBA 0014 jsr [PC + 0x14 /* 00000736 */]
00000724 2F40 0014 move.l [A7 + 0x14], D0
00000728 221F move.l D1, [A7]+
0000072A 201F move.l D0, [A7]+
0000072C 4E5E unlink A6
0000072E 2F57 0004 move.l [A7 + 0x4], [A7]
00000732 588F addq.l A7, 4
00000734 4E75 rts
fn00000736:
00000736 48E7 3E00 movem.l -[A7], D2,D3,D4,D5,D6
0000073A 2A00 move.l D5, D0
0000073C 6A02 bpl +0x4 /* 00000740 */
0000073E 4480 neg.l D0
label00000740:
00000740 2C01 move.l D6, D1
00000742 6A02 bpl +0x4 /* 00000746 */
00000744 4481 neg.l D1
label00000746:
00000746 2401 move.l D2, D1
00000748 4842 swap.w D2
0000074A 4A42 tst.w D2
0000074C 661C bne +0x1E /* 0000076A */
0000074E 3600 move.w D3, D0
00000750 4240 clr.w D0
00000752 4840 swap.w D0
00000754 6704 beq +0x6 /* 0000075A */
00000756 80C1 divu.w D0, D1
00000758 3400 move.w D2, D0
label0000075A:
0000075A 4842 swap.w D2
0000075C 3003 move.w D0, D3
0000075E 80C1 divu.w D0, D1
00000760 3400 move.w D2, D0
00000762 2202 move.l D1, D2
00000764 4240 clr.w D0
00000766 4840 swap.w D0
00000768 601C bra +0x1E /* 00000786 */
label0000076A:
0000076A 2400 move.l D2, D0
0000076C 2601 move.l D3, D1
0000076E 7000 moveq.l D0, 0x00
00000770 7200 moveq.l D1, 0x00
00000772 781F moveq.l D4, 0x1F
label00000774:
00000774 D482 add.l D2, D2
00000776 D180 addx.l D0, D0
00000778 D281 add.l D1, D1
0000077A B083 cmp.l D0, D3
0000077C 6D04 blt +0x6 /* 00000782 */
0000077E 9083 sub.l D0, D3
00000780 5201 addq.b D1, 1
label00000782:
00000782 51CC FFF0 dbf D4, -0x12 /* 00000774 */
label00000786:
00000786 4A85 tst.l D5
00000788 6A02 bpl +0x4 /* 0000078C */
0000078A 4480 neg.l D0
label0000078C:
0000078C BB86 xor.l D6, D5
0000078E 6A02 bpl +0x4 /* 00000792 */
00000790 4481 neg.l D1
label00000792:
00000792 4CDF 007C movem.l D2,D3,D4,D5,D6, [A7]+
00000796 4E75 rts